#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>


int main(int argc, const char *argv[])
{
	int num=100;
	pid_t pid=fork();
	if(pid>0)
	{
		num=1000;
		printf("fu: num=%d\n",num);	
		waitpid(-1,NULL,0);
	}
	else if(pid==0)
	{
		num=2000;
		printf("zi: num=%d\n",num);
	}
	return 0;
}
